<?
  $dbusername="x";
  $dbpassword="";
  $chandle = mysql_connect("localhost", $dbusername, $dbpassword) 
            or die("Connection Failure to Database");
  mysql_select_db($database, $chandle) or die ($database . " Database not found. " . $dbusername);
?>
